<?php
class modProductsAdvertisementHelper
{
	static function getList(&$params)
	{
		$list		= array();
		$db = JFactory::getDbo();
		$sql="select * from yyi_products where is_commend=1 order by ordering asc";
		$db->setQuery($sql,0,5);//取5个记录
		return $db->loadRowList() ;
	}
}
?>